Pod::Spec.new do |spec|
  spec.name         = "HHUserCenter"
  spec.version      = "1.0.0"
  spec.summary      = "iOS 健康用户中心组件"
  spec.description      = <<-DESC.gsub(/^\s*\|?/,'')
                       An optional longer description of HHUserCenter

                       | * Markdown format.
                       | * Don't worry about the indent, we strip it!
                       DESC

  spec.homepage     = "https://gitlab.leke.cn/health-huihui/app/ios/ios-component/HHUserCenter.git"
  spec.license      = "BSD"
  spec.author       = { "chasel" => "chenchun1@cnstrong.cn" }
  spec.source           = { :git => "git@gitlab.leke.cn:health-huihui/app/ios/ios-component/HHUserCenter.git", :branch => "master" }
  spec.platform     = :ios, '9.0'
  spec.requires_arc = true
  spec.default_subspec = 'Core'


    #RSA 加密 模块
    spec.subspec 'RSA' do |rsa|
        rsa.public_header_files = 'RSA/**/*.h'
        rsa.source_files = 'RSA/**/*.{h,m,mm}'
    end

     #Device （Keychain，Identifier） 
    spec.subspec 'Device' do |device|
        device.public_header_files = 'Device/**/*.h'
        device.source_files = 'Device/**/*.{h,m}'
    end

    #用户核心 模块
    spec.subspec 'Core' do |core|
        core.public_header_files = 'Core/**/*.h'
        core.source_files = 'Core/**/*.{h,m}'

        core.dependency 'BCModel'
        core.dependency 'BCFoundation'
        core.dependency 'BCComConfigKit'
        core.dependency 'BCEventBus'

        core.dependency 'HHNetworkKit'

        core.dependency spec.name+'/RSA'
        core.dependency spec.name+'/Device'
    end
  

end
